package com.furongji.education.clients;

import com.furongji.common.result.Result;
import com.furongji.education.fallback.VodFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;

@FeignClient(value = "aliyun-service", fallbackFactory = VodFeignClientFallback.class)
public interface VodFeignClient {

    @DeleteMapping("/admin/vod/removeVideo/{id}")
    public Result removeVideo(@PathVariable("id") String id);

    @DeleteMapping("/admin/vod/removeVideoList")
    public Result removeVideoList(@RequestParam(value = "videoIdList") List<String> videoIdList);
}
